package base.utils;

import java.util.Map;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.json.MappingJacksonJsonView;

public class ResultUtil {
	
	public static ModelAndView returnJsonStr(String code,String msg,Map<String, Object> attributes,Map<String,Object> map,MappingJacksonJsonView view,ModelAndView mv){
		attributes.put("code", code);
		attributes.put("msg", msg);
		attributes.put("data", map);
		view.setAttributesMap(attributes);
		mv.setView(view);
		return mv;
	}
}
